package com.xju.ikun.service.serviceImpl;


import com.xju.ikun.bean.SongerlistBean;
import com.xju.ikun.bean.SonglistBean;
import com.xju.ikun.dao.SongerlistDao;
import com.xju.ikun.service.SongerlistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SongerlistServiceImpl implements SongerlistService {
    @Autowired
    SongerlistDao songerlistDao;
    @Override
    public List<SongerlistBean> findByUserid(int userid) {
        return songerlistDao.findByUserid(userid);
    }

    @Override
    public SongerlistBean findByUseridSongerid(int userid, int songerid) {
        return songerlistDao.findByUseridSongerid(userid,songerid);
    }
    @Override
    public int insertSongerlistBean(SongerlistBean songerlistBean) {
        return songerlistDao.insertSongerlistBean(songerlistBean);
    }

    @Override
    public int deleteByPrimaryKey(int songerlist_id) {
        return songerlistDao.deleteByPrimaryKey(songerlist_id);
    }
}
